MDirectorNewsletter\includes\Mdirector_Newsletter_Utils D

Total Complexity 285
Dependencies 11
Dependents 6
Total lines 1,839
Lines of code 1,245
Logical lines of code 510
Comment lines 122
Methods 91
Properties 4

Methods 91

Method Rating Maintainability Complexity Lines of code
sendMailAPI()
B
37 16 73
getRegisterFormHTML()
B
39 15 63
isDeliveryActive()
A
47 15 36
mdSendWeeklyMails()
A
39 12 64
mdSendDailyMails()
A
41 10 58
getUserListItemHTML()
A
46 10 37
composeEmailSubject()
A
49 8 31
mdSendMail()
S
46 6 38
getUserListNameByType()
S
58 7 17
getSelectFrequency()
S
49 5 37
log()
S
55 6 21
getSelectedUserListsByLanguageHTML()
S
49 5 32
getCurrentLanguages()
S
53 5 25
buildDailyMails()
S
56 5 19
buildWeeklyMails()
S
56 5 19
getCurrentTemplate()
S
56 5 18
getUserListsByAPI()
S
51 4 30
getCurrentGroupsIds()
S
59 5 14
getCurrentSegmentsIds()
S
59 5 14
getUserCampaignsByAPI()
S
51 4 29
getCurrentListsIds()
S
62 5 11
getUserCampaignsHTML()
S
55 4 19
findKeyInMultiArray()
S
63 5 10
getCurrentLang()
S
60 4 13
getExcludeCats()
S
61 4 12
getCampaignsHTMLByFrequency()
S
53 3 23
textTruncate()
S
56 3 18
buildPosts()
S
58 3 16
getMainImage()
S
63 3 11
getTemplateOptionsHTML()
S
58 2 17
getTemplateMainFile()
S
64 3 10
checkIfDeliveryCanBeSent()
S
63 3 10
getPluginTemplates()
S
63 3 10
parseUserLists()
S
68 3 7
parseUserGroups()
S
68 3 7
getListsPrefix()
S
66 3 9
parseUserSegments()
S
69 3 7
getUserListValueByType()
S
73 3 5
getListsHTML()
S
63 3 10
resetNewsletterDeliveryDateSent()
S
59 2 15
getMinimumPostsForNewsletter()
S
59 2 14
getCustomTemplatesURI()
S
62 2 13
parsePost()
S
60 2 13
getImageTagFromPost()
S
63 2 12
getCampaignsForTestsHTMLByFrequency()
S
62 2 11
printNotices()
S
73 2 5
getCustomTemplatesPath()
S
69 2 7
getTemplateURL()
S
70 2 6
getTemplatePath()
S
69 2 7
getDynamicPostTitle()
S
68 2 7
getDeliveryCampaignId()
S
70 2 6
getMainImageSize()
S
74 2 5
getUserListExtraData()
S
70 2 6
getPluginOptions()
S
76 2 4
cleanNewsletterProcess()
S
63 2 10
calculateFromDate()
S
63 2 10
getUserCustomTemplates()
S
61 1 13
resetDeliveriesSent()
S
64 1 11
getPostsArgs()
S
64 1 11
buildListFromPosts()
S
64 1 10
getDefaultUserLists()
S
68 1 7
prettyPrintMultiArray()
S
67 1 7
reportNotice()
S
70 1 7
getWeeklyCampaignsTestsHTML()
S
80 1 3
bootNotices()
S
79 1 3
buildUserList()
S
80 1 3
getWeeklyCampaignsByLanguageHTML()
S
80 1 3
getSegmentId()
S
82 1 3
getDailyCampaignsTestsHTML()
S
80 1 3
buildUserGroupSegments()
S
80 1 3
setHTMLContentType()
S
82 1 3
isWPML()
S
80 1 3
getDailyCampaignsByLanguageHTML()
S
80 1 3
getDefaultTemplates()
S
71 1 6
buildWeeklyMailsInPreviewMode()
S
76 1 4
buildDailyMailsInPreviewMode()
S
76 1 4
getCustomTemplatesOnChildThemePath()
S
72 1 6
isTemplateCustom()
S
79 1 3
getTemplateName()
S
75 1 4
calculateToDate()
S
66 1 9
templateMainFileIsTwig()
S
75 1 4
parsingTemplate()
S
64 1 10
getPosts()
S
70 1 6
getUserListsHTML()
S
75 1 4
getCustomPostArg()
S
72 1 6
getCustomPost()
S
72 1 5
buildUserListsForCampaign()
S
67 1 9
getAndParseCustomPost()
S
74 1 4
getSegmentsInGroup()
S
75 1 4
getCustomTemplatesOnParentThemePath()
S
72 1 6
__construct()
S
76 1 4